﻿# OTableau : WYSIWYG LaTeX code generator for OT tableaux 
# Date: 06/03/01
# Copyright (C) 2006 Julien Eychenne
# 
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
# MA  02110-1301, USA.

# History: OTableau started its life as a quick and dirty Perl script. It is now
# a hopefully much cleaner python application.

from distutils.core import setup
import py2app
import __version__

py2app_options = dict(
    # Map "open document" events to sys.argv.
    # Scripts that expect files as command line arguments
    # can be trivially used as "droplets" using this option.
    # Without this option, sys.argv should not be used at all
    # as it will contain only Mac OS X specific stuff.
    argv_emulation=True,

    # This is a shortcut that will place MyApplication.icns
    # in the Contents/Resources folder of the application bundle,
    # and make sure the CFBundleIcon plist key is set appropriately.
    iconfile='OTableau.icns',
    # Note: settings.osx provides initial settings (which are copied to
    # ~/Library/Preferences/otableau-settings.ini if not present)
    resources=['../settings.osx'],
    # note: I would say
    # plist='Info.plist',
    # here, but the current plist hard codes a dependency on Python 2.3
    # which causes problems. The plist needs to be updated some time.
)

setup(
    app=['../OTableau.py'],
    version = __version__.version,
    options=dict(py2app=py2app_options)
)

